package com.ee.chat.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 系统订单表
 * </p>
 *
 * @author Shane
 * @since 2019-07-11
 */
@TableName("sys_order")
public class SysOrder implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 用户id
	 */
	@TableField(value="user_id")
	private Integer userId;

	/**
	 * 订单号
	 */
	@TableField(value="order_number")
	private String orderNumber;

	@TableField(value = "transaction_id")
	private String transactionId;

	/**
	 * 支付方式，0-微信  1-支付宝
	 */
	@TableField(value="pay_way")
	private Integer payWay;

	private Integer amount;

	@TableField(value = "undulate_amount")
	private Integer undulateAmount;

	/**
	 * 交易类型
	 */
	@TableField(value = "`type`")
	private Integer type;

	/**
	 * 状态，0-未支付  1-已支付
	 */
	@TableField(value = "`status`")
	private Integer status;

	/**
	 * 
	 */
	@TableField(value="create_time")
	private Date createTime;

	/**
	 * 
	 */
	@TableField(value="update_time")
	private Date updateTime;

	@TableField(value = "pay_pattern")
	private Integer payPattern;

	@TableField(value = "pay_channel_config_id")
	private Integer payChannelConfigId;

	public SysOrder() {
	}

	public SysOrder(Integer userId, String orderNumber, Integer payWay, Integer payPattern, Integer payChannelConfigId, Integer amount, Integer undulateAmount, Integer type, Integer status) {
		this.userId = userId;
		this.orderNumber = orderNumber;
		this.payWay = payWay;
		this.payPattern = payPattern;
		this.payChannelConfigId = payChannelConfigId;
		this.amount = amount;
		this.undulateAmount = undulateAmount;
		this.type = type;
		this.status = status;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}

	public String getTransactionId() {
		return transactionId;
	}

	public void setTransactionId(String transactionId) {
		this.transactionId = transactionId;
	}

	public Integer getPayWay() {
		return payWay;
	}

	public void setPayWay(Integer payWay) {
		this.payWay = payWay;
	}

	public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public Integer getUndulateAmount() {
		return undulateAmount;
	}

	public void setUndulateAmount(Integer undulateAmount) {
		this.undulateAmount = undulateAmount;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getPayPattern() {
		return payPattern;
	}

	public void setPayPattern(Integer payPattern) {
		this.payPattern = payPattern;
	}

	public Integer getPayChannelConfigId() {
		return payChannelConfigId;
	}

	public void setPayChannelConfigId(Integer payChannelConfigId) {
		this.payChannelConfigId = payChannelConfigId;
	}
}
